package ThaumPerditio.common.block;

import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;

public class ItemBlockDefusionDevice extends ItemBlock {

    public ItemBlockDefusionDevice(Block block){
        super(block);
        this.setMaxDamage(0);
        this.setHasSubtypes(true);
    }
    @Override
    public String getUnlocalizedName(ItemStack itemstack){

        int i = itemstack.getItemDamage();
        if(i == 0){return "tileDefusionPedestal";}
        else {return "tileDefusionPedestal";}

    }

    @Override
    public int getMetadata(int metadata ){
        return metadata;
    }
}
